Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use regular (not Perl) grep syntax in scripts #887

Merged
merged 6 commits into from
Jun 20, 2024

Conversation

brian-level
Copy link
Contributor

@brian-level brian-level commented Jun 13, 2024

Mac platforms are become more locked-down and when grep is installed
by XCode for example it is a BSD version not GNU version so doesn't
have the "-P" option to use perl patterns. This fixes scripts to not
depend on GNU grep.

@lmnotran lmnotran self-requested a review June 14, 2024 15:34
Copy link
Contributor

@lmnotran lmnotran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! @jwhui Could you please review when you get a chance? When merging, please squash and merge

@lmnotran
Copy link
Contributor

lmnotran commented Jun 14, 2024

@brian-level looks like project_name and extension_name are being parsed incorrectly. Could you please remove the leading spaces?

https://github.com/openthread/ot-efr32/actions/runs/9514548986/job/26240815333#step:8:176

https://github.com/openthread/ot-efr32/actions/runs/9514548986/job/26240815333#step:8:216

script/util Show resolved Hide resolved
script/util Show resolved Hide resolved
script/util Show resolved Hide resolved
script/util Show resolved Hide resolved
script/generate Outdated
project_name=$(grep -oP 'project_name: \K(.*)' "${slcp}")
project_line=$(grep 'project_name: ' "${slcp}")
project_name="${project_line//project_name:/}"
project_name="${project_line// /}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
project_name="${project_line// /}"
project_name="${project_name// /}"

https://github.com/openthread/ot-efr32/actions/runs/9521284214/job/26248388553?pr=887#step:8:178

Copy link
Contributor

@lmnotran lmnotran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @brian-level ! @jwhui please review when you can 🙂

Copy link
Member

@jwhui jwhui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 👍🏼

@jwhui jwhui merged commit 3566cf0 into openthread:main Jun 20, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants